﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cofe.Core.Filter;

namespace Cofe.Core.Utils
{
    /// <summary>
    /// Parse/generate property string to/from Filter
    /// </summary>
    public interface IFilterParser<T> : ICofeService where T : IFilter
    {
        /// <summary>
        /// Uses to serialize the properties to string.
        /// </summary>
        IPropertySerializer PropertySerializer { get; set; }
        IFilterConstructor FilterConstructor { get; set; }

        string FilterToFilterString(IEnumerable<IFilter> filters);

        IFilter CreateFilter(string key, string value);
    }

   
}
